<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
    <body>

        This text above will not be displayed.

        <ui:composition template="/templateGeral.xhtml">

            This text will not be displayed.

            <ui:define name="title">
                index
            </ui:define>

            <ui:define name="left">
                
                <h:form>
                    <h:outputText value="Login"/>
                    <br/>
                    <h:inputText id="login" value="#{usuarioMB.usuarioCorrente.login}" required="true" size="10"/>
                    <br/>
                    <br/>
                    <h:outputText value="Senha"/>
                    <br/>
                    <h:inputSecret id="senha" value="#{usuarioMB.usuarioCorrente.senha}" redisplay="false" required="true" size="10"/>
                    <br/>
                    <h:messages />
                    <br/>
                    <h:commandButton value="Logar" action="#{usuarioMB.login}" />
                </h:form>

            </ui:define>

            <ui:define name="content">

                <h2><h:outputText value="Seja bem vindo!"/></h2>

                <h3><h:outputText value="Para ter acesso as opções é necessário efetuar login no sistema."/></h3>
                
                <h3><h:outputText value="Login ou senha incorretos. Tente novamente."
                                  rendered="#{usuarioMB.loginIncorreto}"/></h3>
            </ui:define>

            This text will not be displayed.

        </ui:composition>

        This text below will also not be displayed.

    </body>
</html>

